how to convert string to int in java example